package com.base.hong.net

import com.base.hong.model.BannerEntity
import com.base.hong.model.LoginEntity
import com.base.hong.model.ProjectListEntity
import com.base.hong.model.ProjectTitleEntity
import com.htt.base_library.network.BaseResponse
import okhttp3.RequestBody
import retrofit2.http.*


interface HttpService {
    /**
     *登录
     */
    @FormUrlEncoded
    @POST("user/login")
    suspend fun sendLoginInfo(
        @Field("username") username: String,
        @Field("password") password: String
    ): BaseResponse<LoginEntity>

    /**
     *登录
     */
    @GET("banner/json")
    suspend fun getBannerInfo(

    ): BaseResponse<List<BannerEntity>>
    /**
     *项目标题
     */
    @GET("project/tree/json")
    suspend fun getProjectTitle(

    ): BaseResponse<ProjectTitleEntity>
    /**
     *项目列表
     */
    @GET("project/list/{page_size}/json")
    suspend fun getProjectList(
        @Path("page_size") page_size:Int,
        @Query("cid") cid:Int,

    ): BaseResponse<ProjectListEntity>


}